One canvas workflow, render script and style update.
[moblin-icon-theme.git] / Moblin Netbook / convert.sh
blob41a39fe6ee429fffb5a9e19a075e2733659f8c86
1 #!/bin/sh
3 # (c) 2009, Intel
4 # Author: Hylke Bons <hylke.bons@intel.com>
5 # This script requires ImageMagick an Inkscape to be installed.
6 # Run in the "Moblin Netbook" directory.
8 mkdir -p 24x24
9 mkdir -p 32x32
10 mkdir -p 48x48
11 mkdir -p 64x64
13 echo ""
14 echo "Exporting icons from source files:"
15 echo ""
17 for category in `ls scalable/`; do
18 cd scalable/$category
19 echo -n "in folder \"$category\""
20 for svg in *.svg; do
21 base=`echo $svg | sed s/.svg$//`
22 mkdir -p ../../48x48/$category/
23 mkdir -p ../../64x64/$category/
24 convert -background None $svg ../../48x48/$category/$base.png
25 inkscape -f $svg -w 64 -h 64 -e ../../64x64/$category/$base.png
26 echo -n "."
27 done
28 cd ../../
29 echo " Done."
30 done